/**
 * 0 ：空白
 * 1 ：玩家
 * 2 ：墙
 * 3 ：箱子
 */

export const SPACE = 0,
    PLAYER = 1,
    WALL = 2,
    BOX = 3

export const map = [
    [
        [0, 0, 2, 2, 2, 2, 2, 0, 0],
        [0, 0, 2, 0, 1, 0, 2, 0, 0],
        [0, 0, 2, 0, 3, 0, 2, 0, 0],
        [2, 2, 2, 0, 0, 0, 2, 2, 2],
        [2, 0, 0, 3, 3, 0, 0, 0, 2],
        [2, 0, 3, 0, 3, 3, 3, 0, 2],
        [2, 0, 0, 0, 3, 0, 0, 0, 2],
        [2, 2, 0, 3, 3, 3, 0, 2, 2],
        [0, 2, 0, 0, 0, 0, 0, 2, 0],
        [0, 2, 0, 0, 3, 0, 0, 2, 0],
        [0, 2, 0, 0, 0, 0, 0, 2, 0],
        [0, 2, 2, 2, 2, 2, 2, 2, 0]
    ], [
        [2, 2, 2, 2, 2, 0],
        [2, 0, 1, 0, 2, 0],
        [2, 0, 0, 0, 2, 0],
        [2, 3, 3, 3, 2, 2],
        [2, 0, 0, 0, 0, 2],
        [2, 0, 0, 0, 0, 2],
        [2, 2, 2, 2, 2, 2]
    ],
    [
        [0, 0, 2, 2, 2, 2],
        [2, 2, 2, 0, 0, 2],
        [2, 0, 3, 3, 0, 2],
        [2, 0, 2, 0, 0, 2],
        [2, 0, 1, 0, 0, 2],
        [2, 2, 2, 0, 0, 2],
        [0, 0, 2, 2, 2, 2]
    ],
]

// 正确位置
export const correct = [
    [
        { row: 3, col: 4 },
        { row: 4, col: 4 },
        { row: 5, col: 2 },
        { row: 5, col: 3 },
        { row: 5, col: 4 },
        { row: 5, col: 5 },
        { row: 5, col: 6 },
        { row: 6, col: 4 },
        { row: 7, col: 4 },
        { row: 8, col: 4 },
        { row: 9, col: 4 },
        { row: 10, col: 4 }
    ], [
        { row: 2, col: 1 },
        { row: 2, col: 2 },
        { row: 2, col: 3 },
    ], [
        { row: 2, col: 1 },
        { row: 2, col: 4 }
    ],
]
